package org.coderjonny.dto.product;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class UpdateStock {
    @NotNull(message = "商品id不能为空")
    private Long productId;
    @NotNull(message = "商品数量不能为空")
    @Min(value = 1,message = "商品数量必须大于0")
    private Integer count;
}
